package com.gaoshu.service.serviceimpl;

import com.gaoshu.bean.Register;
import com.gaoshu.mapper.RegisterMapper;
import com.gaoshu.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
//事务提交
@Transactional
//创建对象
@Service
/**
 * 对住院登记表的操作
 */
public class RegisterServiceImpl implements RegisterService {
    //对RegisterMapper层的创建对象
    @Autowired
    RegisterMapper registerMapper;

    //查询所有的住院登记
    public List<Register> selectAllRegister(){

        return registerMapper.selectAllRegister();
    }

}
